import request from "@/utils/request";
//应用分类列表
export function add(data) {
  return request({
    url: "/system/appOrg/add",
    method: "post",
    data,
  });
}

export function list(data) {
  return request({
    url: "/system/appOrg/list",
    method: "get",
    params: data,
  });
}

export function queryList(data) {
  return request({
    url: "/system/appOrg/queryList",
    method: "get",
    params: data,
  });
}

export function listLevel(data) {
  return request({
    url: "/system/appOrg/listLevel",
    method: "get",
    params: data,
  });
}

export function remove(data) {
  return request({
    url: "/system/appOrg/remove",
    method: "get",
    params: data,
  });
}

export function unbundedApp(data) {
  return request({
    url: "/system/appOrg/unbundedApp",
    method: "post",
    data,
  });
}

export function edit(data) {
  return request({
    url: "/system/appOrg/edit",
    method: "post",
    data,
  });
}

export function checkBeforeDelete(data) {
  return request({
    url: "/system/appOrg/checkBeforeDelete",
    method: "get",
    params: data,
  });
}

export function queryListByParentId(data) {
  return request({
    url: "/system/appOrg/queryListByParentId",
    method: "get",
    params: data,
  });
}

export function selectUnbingdedApp(data) {
  return request({
    url: "/system/appOrg/selectUnbingdedApp",
    method: "get",
    params: data,
  });
}

export function addApp(data) {
  return request({
    url: "/system/appOrg/addApp",
    method: "post",
    data,
  });
}

export function querySystemNameList(data) {
  return request({
    url: "/system/appOrg/querySystemNameList",
    method: "get",
    params: data,
  });
}
